package com.example.ymq.data

data class Config(
//    val baseUrl: String = "http://192.168.91.110:8000",
     val baseUrl: String = "https://api2.lptiyu.com",
//    val endpoint: String = "/test",
     val endpoint: String = "/bdlp_h5_fitness_test/public/index.php/index/Stadium/addOrder",
    val cookies: Cookies,
    val auth: Auth
)

data class Cookies(
    val PHPSESSID: String
)

data class Auth(
    val h5_token: String,
    val uid: String,
    val timestamp: String
)

data class Reservation(
    val stadium_id: Int = 174,
    val venue_id: Int = 230,
    val court: String = "2号场地",
    val court_id: Int = 693,
    val date: String,
    val time_slots: List<TimeSlot>
)

data class TimeSlot(
    val time: String,
    val interval_id: Int
)

data class ReservationDetail(
    val date: String,
    val area_name: String,
    val interval_time: String,
    val interval_id: String,
    val area_id: String,
    val week: Int,
    val week_msg: String
)

data class ReservationData(
    val stadium_id: String,
    val venue_id: String,
    val stadium_name: String = "荆州东校区羽毛球场（付费周一至周日）",
    val project_name: String = "羽毛球",
    val is_academy: String = "2",
    val academy_name: String = "",
    val mark: String = "",
    val details: List<ReservationDetail>,
    val uids: String = "",
    val is_vip: String = "0",
    val pay_type: String = "1",
    val timestamp: String,
    val h5_token: String,
    val uid: String
)